const buf = new ArrayBuffer(8);
const a1 = new Uint32Array(buf);
a1[0] = 1;
a1[1] = 2;
const a2 = new Uint8Array(buf);
console.log(a1); // Uint32Array(2) [ 1, 2 ]
// 小端模式存放
console.log(a2); // Uint8Array(8) [1, 0, 0, 0, 2, 0, 0, 0]
